﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000051 RID: 81
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AetherDivideBattleInfo : IMessage<AetherDivideBattleInfo>, IMessage, IEquatable<AetherDivideBattleInfo>, IDeepCloneable<AetherDivideBattleInfo>, IBufferMessage
	{
		// Token: 0x17000104 RID: 260
		// (get) Token: 0x06000396 RID: 918 RVA: 0x0000B98C File Offset: 0x00009B8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AetherDivideBattleInfo> Parser
		{
			get
			{
				return AetherDivideBattleInfo._parser;
			}
		}

		// Token: 0x17000105 RID: 261
		// (get) Token: 0x06000397 RID: 919 RVA: 0x0000B993 File Offset: 0x00009B93
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AetherDivideBattleInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000106 RID: 262
		// (get) Token: 0x06000398 RID: 920 RVA: 0x0000B9A5 File Offset: 0x00009BA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AetherDivideBattleInfo.Descriptor;
			}
		}

		// Token: 0x06000399 RID: 921 RVA: 0x0000B9AC File Offset: 0x00009BAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideBattleInfo()
		{
		}

		// Token: 0x0600039A RID: 922 RVA: 0x0000B9D8 File Offset: 0x00009BD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideBattleInfo(AetherDivideBattleInfo other) : this()
		{
			this.battleAvatarList_ = other.battleAvatarList_.Clone();
			this.logicRandomSeed_ = other.logicRandomSeed_;
			this.buffList_ = other.buffList_.Clone();
			this.battleId_ = other.battleId_;
			this.stageId_ = other.stageId_;
			this.monsterWaveList_ = other.monsterWaveList_.Clone();
			this.nLBJKFNNONH_ = other.nLBJKFNNONH_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600039B RID: 923 RVA: 0x0000BA5F File Offset: 0x00009C5F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideBattleInfo Clone()
		{
			return new AetherDivideBattleInfo(this);
		}

		// Token: 0x17000107 RID: 263
		// (get) Token: 0x0600039C RID: 924 RVA: 0x0000BA67 File Offset: 0x00009C67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<AetherAvatarInfo> BattleAvatarList
		{
			get
			{
				return this.battleAvatarList_;
			}
		}

		// Token: 0x17000108 RID: 264
		// (get) Token: 0x0600039D RID: 925 RVA: 0x0000BA6F File Offset: 0x00009C6F
		// (set) Token: 0x0600039E RID: 926 RVA: 0x0000BA77 File Offset: 0x00009C77
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LogicRandomSeed
		{
			get
			{
				return this.logicRandomSeed_;
			}
			set
			{
				this.logicRandomSeed_ = value;
			}
		}

		// Token: 0x17000109 RID: 265
		// (get) Token: 0x0600039F RID: 927 RVA: 0x0000BA80 File Offset: 0x00009C80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<BattleBuff> BuffList
		{
			get
			{
				return this.buffList_;
			}
		}

		// Token: 0x1700010A RID: 266
		// (get) Token: 0x060003A0 RID: 928 RVA: 0x0000BA88 File Offset: 0x00009C88
		// (set) Token: 0x060003A1 RID: 929 RVA: 0x0000BA90 File Offset: 0x00009C90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BattleId
		{
			get
			{
				return this.battleId_;
			}
			set
			{
				this.battleId_ = value;
			}
		}

		// Token: 0x1700010B RID: 267
		// (get) Token: 0x060003A2 RID: 930 RVA: 0x0000BA99 File Offset: 0x00009C99
		// (set) Token: 0x060003A3 RID: 931 RVA: 0x0000BAA1 File Offset: 0x00009CA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint StageId
		{
			get
			{
				return this.stageId_;
			}
			set
			{
				this.stageId_ = value;
			}
		}

		// Token: 0x1700010C RID: 268
		// (get) Token: 0x060003A4 RID: 932 RVA: 0x0000BAAA File Offset: 0x00009CAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<SceneMonsterWave> MonsterWaveList
		{
			get
			{
				return this.monsterWaveList_;
			}
		}

		// Token: 0x1700010D RID: 269
		// (get) Token: 0x060003A5 RID: 933 RVA: 0x0000BAB2 File Offset: 0x00009CB2
		// (set) Token: 0x060003A6 RID: 934 RVA: 0x0000BABA File Offset: 0x00009CBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool NLBJKFNNONH
		{
			get
			{
				return this.nLBJKFNNONH_;
			}
			set
			{
				this.nLBJKFNNONH_ = value;
			}
		}

		// Token: 0x060003A7 RID: 935 RVA: 0x0000BAC3 File Offset: 0x00009CC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AetherDivideBattleInfo);
		}

		// Token: 0x060003A8 RID: 936 RVA: 0x0000BAD4 File Offset: 0x00009CD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AetherDivideBattleInfo other)
		{
			return other != null && (other == this || (this.battleAvatarList_.Equals(other.battleAvatarList_) && this.LogicRandomSeed == other.LogicRandomSeed && this.buffList_.Equals(other.buffList_) && this.BattleId == other.BattleId && this.StageId == other.StageId && this.monsterWaveList_.Equals(other.monsterWaveList_) && this.NLBJKFNNONH == other.NLBJKFNNONH && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060003A9 RID: 937 RVA: 0x0000BB7C File Offset: 0x00009D7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.battleAvatarList_.GetHashCode();
			if (this.LogicRandomSeed != 0U)
			{
				num ^= this.LogicRandomSeed.GetHashCode();
			}
			num ^= this.buffList_.GetHashCode();
			if (this.BattleId != 0U)
			{
				num ^= this.BattleId.GetHashCode();
			}
			if (this.StageId != 0U)
			{
				num ^= this.StageId.GetHashCode();
			}
			num ^= this.monsterWaveList_.GetHashCode();
			if (this.NLBJKFNNONH)
			{
				num ^= this.NLBJKFNNONH.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060003AA RID: 938 RVA: 0x0000BC30 File Offset: 0x00009E30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060003AB RID: 939 RVA: 0x0000BC38 File Offset: 0x00009E38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060003AC RID: 940 RVA: 0x0000BC44 File Offset: 0x00009E44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.monsterWaveList_.WriteTo(ref output, AetherDivideBattleInfo._repeated_monsterWaveList_codec);
			if (this.BattleId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.BattleId);
			}
			this.battleAvatarList_.WriteTo(ref output, AetherDivideBattleInfo._repeated_battleAvatarList_codec);
			if (this.StageId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.StageId);
			}
			if (this.LogicRandomSeed != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.LogicRandomSeed);
			}
			if (this.NLBJKFNNONH)
			{
				output.WriteRawTag(112);
				output.WriteBool(this.NLBJKFNNONH);
			}
			this.buffList_.WriteTo(ref output, AetherDivideBattleInfo._repeated_buffList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060003AD RID: 941 RVA: 0x0000BD08 File Offset: 0x00009F08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.battleAvatarList_.CalculateSize(AetherDivideBattleInfo._repeated_battleAvatarList_codec);
			if (this.LogicRandomSeed != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LogicRandomSeed);
			}
			num += this.buffList_.CalculateSize(AetherDivideBattleInfo._repeated_buffList_codec);
			if (this.BattleId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BattleId);
			}
			if (this.StageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.StageId);
			}
			num += this.monsterWaveList_.CalculateSize(AetherDivideBattleInfo._repeated_monsterWaveList_codec);
			if (this.NLBJKFNNONH)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060003AE RID: 942 RVA: 0x0000BDBC File Offset: 0x00009FBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AetherDivideBattleInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.battleAvatarList_.Add(other.battleAvatarList_);
			if (other.LogicRandomSeed != 0U)
			{
				this.LogicRandomSeed = other.LogicRandomSeed;
			}
			this.buffList_.Add(other.buffList_);
			if (other.BattleId != 0U)
			{
				this.BattleId = other.BattleId;
			}
			if (other.StageId != 0U)
			{
				this.StageId = other.StageId;
			}
			this.monsterWaveList_.Add(other.monsterWaveList_);
			if (other.NLBJKFNNONH)
			{
				this.NLBJKFNNONH = other.NLBJKFNNONH;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060003AF RID: 943 RVA: 0x0000BE67 File Offset: 0x0000A067
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060003B0 RID: 944 RVA: 0x0000BE70 File Offset: 0x0000A070
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 58U)
				{
					if (num == 10U)
					{
						this.monsterWaveList_.AddEntriesFrom(ref input, AetherDivideBattleInfo._repeated_monsterWaveList_codec);
						continue;
					}
					if (num == 16U)
					{
						this.BattleId = input.ReadUInt32();
						continue;
					}
					if (num == 58U)
					{
						this.battleAvatarList_.AddEntriesFrom(ref input, AetherDivideBattleInfo._repeated_battleAvatarList_codec);
						continue;
					}
				}
				else if (num <= 80U)
				{
					if (num == 64U)
					{
						this.StageId = input.ReadUInt32();
						continue;
					}
					if (num == 80U)
					{
						this.LogicRandomSeed = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 112U)
					{
						this.NLBJKFNNONH = input.ReadBool();
						continue;
					}
					if (num == 122U)
					{
						this.buffList_.AddEntriesFrom(ref input, AetherDivideBattleInfo._repeated_buffList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000147 RID: 327
		private static readonly MessageParser<AetherDivideBattleInfo> _parser = new MessageParser<AetherDivideBattleInfo>(() => new AetherDivideBattleInfo());

		// Token: 0x04000148 RID: 328
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000149 RID: 329
		public const int BattleAvatarListFieldNumber = 7;

		// Token: 0x0400014A RID: 330
		private static readonly FieldCodec<AetherAvatarInfo> _repeated_battleAvatarList_codec = FieldCodec.ForMessage<AetherAvatarInfo>(58U, AetherAvatarInfo.Parser);

		// Token: 0x0400014B RID: 331
		private readonly RepeatedField<AetherAvatarInfo> battleAvatarList_ = new RepeatedField<AetherAvatarInfo>();

		// Token: 0x0400014C RID: 332
		public const int LogicRandomSeedFieldNumber = 10;

		// Token: 0x0400014D RID: 333
		private uint logicRandomSeed_;

		// Token: 0x0400014E RID: 334
		public const int BuffListFieldNumber = 15;

		// Token: 0x0400014F RID: 335
		private static readonly FieldCodec<BattleBuff> _repeated_buffList_codec = FieldCodec.ForMessage<BattleBuff>(122U, BattleBuff.Parser);

		// Token: 0x04000150 RID: 336
		private readonly RepeatedField<BattleBuff> buffList_ = new RepeatedField<BattleBuff>();

		// Token: 0x04000151 RID: 337
		public const int BattleIdFieldNumber = 2;

		// Token: 0x04000152 RID: 338
		private uint battleId_;

		// Token: 0x04000153 RID: 339
		public const int StageIdFieldNumber = 8;

		// Token: 0x04000154 RID: 340
		private uint stageId_;

		// Token: 0x04000155 RID: 341
		public const int MonsterWaveListFieldNumber = 1;

		// Token: 0x04000156 RID: 342
		private static readonly FieldCodec<SceneMonsterWave> _repeated_monsterWaveList_codec = FieldCodec.ForMessage<SceneMonsterWave>(10U, SceneMonsterWave.Parser);

		// Token: 0x04000157 RID: 343
		private readonly RepeatedField<SceneMonsterWave> monsterWaveList_ = new RepeatedField<SceneMonsterWave>();

		// Token: 0x04000158 RID: 344
		public const int NLBJKFNNONHFieldNumber = 14;

		// Token: 0x04000159 RID: 345
		private bool nLBJKFNNONH_;
	}
}
